package sanmubird.club.demo.app1;

import com.baomidou.mybatisplus.core.toolkit.BeanUtils;
import com.google.common.collect.Maps;
import org.junit.Test;

import java.util.Map;

public class Demo1 {

	@Test
	public void demo1() {

		Map map = Maps.newHashMap();
		map.put("a", 1);
		map.put("b", 0.1);
		map.put("d", "2019-01-02");
		map.put("s", "张三");
		map.put("c", 'a');

		Demo demo = BeanUtils.mapToBean(map, Demo.class);
		System.out.println(demo);
	}


}
